
public class EntityBlockFactoy {

	public static EntityBlock createEntityBlock(EntityKind kind){
		EntityBlock entityBlock = null;
		switch(kind.getKind()){
		case EntityKind.CLASS_ENTITY:
			entityBlock = new ClassEntityBlock();
			break;
		case EntityKind.METHOD_ENTITY:
			entityBlock = new MethodEntityBlock();
			break;
		case EntityKind.VARIABLE_ENTITY:
			entityBlock = new VarEntityBlock();
			break;
		}
		return entityBlock;
	}
}
